package com.tlxch.server.teacher.impl;

import com.tlxch.mapper.SEffectMapper;
import com.tlxch.pojo.SEffectWithBLOBs;
import com.tlxch.server.teacher.SEffectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;

@Service
public class SEffectServiceImpl implements SEffectService {
    @Autowired
    SEffectMapper sEffectMapper;

    public void addSEffect(SEffectWithBLOBs sEffectWithBLOBs) {
        sEffectWithBLOBs.setSeCreatetime(LocalDateTime.now());
        sEffectMapper.insert(sEffectWithBLOBs);
    }
}
